package ex.system.service;

import java.util.List;

import modules.system.entity.Role;
import modules.system.service.RoleService;

public class RoleServiceEx extends RoleService {
	public Role getRoleByRoleName(String roleName) {
		List l = getRoleDao().findBy("roleName", roleName);
		if (l.size() > 0)
			return (Role) l.get(0);
		return null;
	}
}
